﻿namespace Devonline.Core
{
    /// <summary>
    /// endpoint configuration
    /// </summary>
    public interface IEndpoint
    {
        /// <summary>
        /// end point name, db name eg
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Doc { get; set; }
        /// <summary>
        /// host name or ip address
        /// </summary>
        public string Host { get; set; }
        /// <summary>
        /// host port
        /// </summary>
        public int? Port { get; set; }
        /// <summary>
        /// endpoint path
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// endpoint protocol
        /// </summary>
        public ProtocolType Protocol { get; set; }
    }
}
